const express = require('express')
const router = express.Router()
const Push = require('../db/model/pushModel')

var param = {
    meta: {
        code: 200,
        msg: ''
    },
    data: ''
}

/**
 * @api {post} /user/login 用户登录
 * @apiName login
 * @apiGroup User
 *
 * @apiParam {String} phone 手机号(required)
 * @apiParam {String} password 密码(required)
 *
 * @apiSuccess {Object} meta 状态信息 
 * @apiSuccess {Object} data { gender,_id,phone,name,password,age,__v }
 * 
 * @apiError 401 登录失败，缺少参数
 * @apiError 402 登录失败，用户名或密码不正确
 */
router.get('/questionnaire', (req, res) => {
    res.send({msg: 200, data: 'ok'})
})

module.exports = router